WooCommerce\PayPalCommerce\ApiClient\Factory\PurchaseUnitFactory S

Total Complexity 43
Dependencies 15
Dependents 19
Total lines 266
Lines of code 129
Logical lines of code 94
Comment lines 118
Methods 9
Properties 7

Methods 9

Method Rating Maintainability Complexity Lines of code
from_paypal_response()
A
45 14 39
from_wc_cart()
A
47 10 33
should_disable_shipping()
S
75 6 3
shipping_needed()
S
61 4 12
from_wc_order()
S
55 2 19
sanitize_soft_descriptor()
S
70 3 5
init_purchase_unit()
S
74 2 5
__construct()
S
65 1 9
country_without_postal_code()
S
65 1 4